﻿<UserControl x:Class="HelloWorld.Views.Home.Login"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Home="clr-namespace:HelloWorld.ViewModels.Home"
             xmlns:Transitions="clr-namespace:Phoenix.Frames.Transitions;assembly=Phoenix" mc:Ignorable="d"
             d:DataContext="{d:DesignInstance Home:LoginViewModel}">
    <Transitions:TransitionService.NavigateForwardTransition>
        <Transitions:SlideTransition Direction="Forward" />
    </Transitions:TransitionService.NavigateForwardTransition>
    <Transitions:TransitionService.NavigateBackTransition>
        <Transitions:SlideTransition Direction="Back" />
    </Transitions:TransitionService.NavigateBackTransition>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <CheckBox Content="Login Should be successful?"
                  x:Name="successfulLogin"
                  Grid.Row="1"
                  HorizontalAlignment="Center" />
        <Button Margin="5"
                Content="Login"
                Grid.Row="2"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Command="{Binding LoginCommand}"
                CommandParameter="{Binding IsChecked, ElementName=successfulLogin}" />
    </Grid>
</UserControl>
